﻿using LogSystem;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class NpcLogError : AIBaseNode
    {
        public BBParameter<string> errorLog;
        
        protected override void OnExecute()
        {
            if (_openLog)
            {
                Debug.LogError($"[AIEntity_{_entity.data.uniqueId}]: {errorLog.value}");            
            }
            EndAction(true);
        }
        
    }
}